<?php
$this->set('title_for_layout', 'Laksmi / Naplók / Új napló létrehozása');
$this->Html->script('cookie', false);
$this->Html->script('ajax.cachedautocompleter.js', false);
$this->Html->script('laksmi.naplo.uj.js', false);
?>
<div class="naplok form">
<?php echo $this->Form->create('Naplo', array('action' => 'uj'));?>
	<fieldset>
 		<legend><?php echo __('Új Napló');?></legend>
	<?php
		print $this->Form->hidden('ceg_id',
								  array(
										  'value' => $this->Session->read('Settings.cegId')
										  )
								  );
		print $this->Form->hidden('ev',
								  array(
										  'value' => $this->Session->read('Settings.ev')
										  )
								  );
		echo $this->Form->input('naplotipus_id',
								array(
									'label' => 'Naplótípus'
								)
								);
		echo $this->Form->input('valuta_id',
								array(
									'label' => 'Valuta'
								)
								);
		echo $this->Form->input('sorszam',
								array(
									'label' => 'Sorszám'
								)
								);
		echo $this->Form->input('nev',
								array(
									'label' => 'A napló neve'
								)
								);
		echo $this->Form->input('alapertelmezett_osztaly',
								array(
									'label' => 'Alapértelmezett osztály',
									'autocomplete' => 'off'
								)
								);
		echo $this->Form->input('alapertelmezett_szamla',
								array(
									'label' => 'Alapértelmezett számla',
									'autocomplete' => 'off'
								)
								);
	?>
	</fieldset>
<?php echo $this->Form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $this->Html->link(__('List Naplok'), array('action'=>'index'));?></li>
		<li><?php echo $this->Html->link(__('List Valutak'), array('controller'=> 'valutak', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Valuta'), array('controller'=> 'valutak', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Naplotipusok'), array('controller'=> 'naplotipusok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Naplotipus'), array('controller'=> 'naplotipusok', 'action'=>'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Bizonylatok'), array('controller'=> 'bizonylatok', 'action'=>'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Bizonylat'), array('controller'=> 'bizonylatok', 'action'=>'add')); ?> </li>
	</ul>
</div>
